package com.smmisia.article.entity.convetor;

import com.smmisia.article.dto.accompany.AccompanyCreateDTO;
import com.smmisia.article.dto.accompany.AccompanyUpdateDTO;
import com.smmisia.article.entity.Accompany;
import com.smmisia.article.response.accompany.AccompanyResponse;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;
import org.mapstruct.factory.Mappers;

@Mapper(nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface AccompanyConvertor {

    AccompanyConvertor INSTANCE = Mappers.getMapper(AccompanyConvertor.class);


    Accompany toAccompanyEntity(AccompanyCreateDTO accompanyDTO);

    Accompany toAccompanyUpdateDTO(AccompanyUpdateDTO accompanyDTO);

    AccompanyResponse toAccompanyResponse(Accompany accompany);
}
